module.exports = {
  compTemplateWrap: function ({ componentName, className }) {
    const compTemplate = `//base
import Taro, {Component} from '@tarojs/taro'
import {View, Text} from '@tarojs/components'
//less
import './index.less'

class ${componentName} extends Component {

	componentWillMount() {//onLoad
	}

	componentDidMount() {//onready
	}

	componentWillUnmount() {//onUnload
	}

	componentWillReceiveProps(nextprops) {
	}

	delay(time = 0) {
		return new Promise((resolve) => {
			setTimeout(() => {
				resolve()
			}, time)
		})
	}

	render() {
		return (
			<View className='${className}'>
				<View><Text>开始你的表演</Text></View>
			</View>
		)
	}
}

export default ${componentName}`

    const compcssTemplate = `.${className}{

}`
    return {
      compTemplate,
      compcssTemplate
    }
  }
}
